#ifndef LS_FUNC_H
#define LS_FUNC_H

#include <sys/stat.h>
#include <dirent.h>

#define RED(a) "\033[31m" a "\033[0m"
#define GREEN(a) "\033[32m" a "\033[0m"
#define SKYBLUD(a) "\033[36m" a "\033[0m"
#define PURPLE(a) "\033[35m" a "\033[0m"


void ls_file(char *fileName);       // ls文件
void ls_dir(char *dirName);    // ls路径
void printDetail(char *Name);
void strCnt(char *fileName);
int getAllDir(char *dirName, struct dirent *entry, char *allDir);
void printByCol();

#endif //LS_FUNC_H
